package com.pureut.production.mapper;

import com.pureut.production.domain.FeedRecord;
import com.pureut.production.domain.FeedRecordDetails;
import com.pureut.production.domain.dto.FeedRecordDetailsDto;
import com.pureut.production.domain.dto.retrospect.MaterialResumeFeedRecordDto;

import java.util.List;

/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
public interface FeedRecordDetailsMapper {
    /**
     * 查询投料记录明细
     */
    List<FeedRecordDetailsDto> selectFeedRecordDetailsList(long feedId);

    /**
     * 通过物料号码查询投料记录明细
     */
    FeedRecordDetailsDto getMaterialNumber(String materialNumber);

    /**
     * 新增投料记录明细
     */
    int insertFeedRecordDetails(FeedRecordDetails feedRecordDetails);

    /**
     * 删除投料记录明细
     * @return
     */
    int deleteByMaterialNumber(String materialNumber);

    /**
     * 查询投料记录信息
     * @param moNumber
     * @return
     */
    List<FeedRecord> getInfo(String moNumber);

    /**
     * 通过物料号码查询投料记录明细(物料追溯)
     */
    MaterialResumeFeedRecordDto getMaterialNumberInfo(String materialNumber);
}
